package edu.zju.gis.dbfg.model.exception;

import java.util.Arrays;

/**
 * @author Hu
 * @date 2020/1/2
 **/
public class ModelElasticsearchException extends RuntimeException {
  public ModelElasticsearchException(String message) {
    super("Job failed: " + message);
  }

  public ModelElasticsearchException(Class clz, String method, String msg, String... data){
    this(String.format("%s, %s, %s，%s", clz.getName(), method, Arrays.toString(data), msg));
  }
}
